package com.sss.controller;

import com.sss.model.HospitalVO;
import com.sss.service.HospitalService;
import com.sss.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 全世界我最爱朴彩英！
 *
 * @Author sss
 * @Create 2023/12/2 15:45
 * @desc
 */
@RestController
public class HospitalController {

    @Autowired
    private HospitalService service;
    //一对多
    @GetMapping("/more")
    public R one2More(int h_ip){
        HospitalVO hospitalVO = service.HosWithDocByh_ip(h_ip);
        return R.ok(hospitalVO);
    }
}
